import React, { Fragment } from 'react';
import { Switch, Route } from "react-router-dom"
import UserIndex from "../views/backend/user/Index"
import FilmIndex from "../views/backend/film/Index"
import MainIndex from "../views/backend/main/Index"
import CinemaIndex from "../views/backend/cinema/Index"
const Admin = () => {
  return (
    <Fragment>
      <Switch>
        {/* <Redirect exact from="/dashboard" to="/dashboard/main"/> */}
        <Route path="/dashboard/main" component={MainIndex} />
        <Route path="/dashboard/user/index" component={UserIndex} />
        <Route path="/dashboard/film/index" component={FilmIndex} />
        <Route path="/dashboard/cinema/index" component={CinemaIndex} />
      </Switch>
    </Fragment>
  );
}

export default Admin;
